//Copyright (c) 2018 Yardi Technology Limited. Http://www.kooboo.com 
//All rights reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kooboo.Dom
{
    [Serializable]
 public   class Range
    {

// .2 Interface Range

//[Constructor]
//interface Range {
//  readonly attribute Node startContainer;
//  readonly attribute unsigned long startOffset;
//  readonly attribute Node endContainer;
//  readonly attribute unsigned long endOffset;
//  readonly attribute boolean collapsed;
//  readonly attribute Node commonAncestorContainer;

//  void setStart(Node node, unsigned long offset);
//  void setEnd(Node node, unsigned long offset);
//  void setStartBefore(Node node);
//  void setStartAfter(Node node);
//  void setEndBefore(Node node);
//  void setEndAfter(Node node);
//  void collapse(optional boolean toStart = false);
//  void selectNode(Node node);
//  void selectNodeContents(Node node);

//  const unsigned short START_TO_START = 0;
//  const unsigned short START_TO_END = 1;
//  const unsigned short END_TO_END = 2;
//  const unsigned short END_TO_START = 3;
//  short compareBoundaryPoints(unsigned short how, Range sourceRange);

//  void deleteContents();
//  [NewObject] DocumentFragment extractContents();
//  [NewObject] DocumentFragment cloneContents();
//  void insertNode(Node node);
//  void surroundContents(Node newParent);

//  [NewObject] Range cloneRange();
//  void detach();

//  boolean isPointInRange(Node node, unsigned long offset);
//  short comparePoint(Node node, unsigned long offset);

//  boolean intersectsNode(Node node);

//  stringifier;
//};

    }
}
